package bb.lanxing.mvp.presetner;

import android.os.Bundle;

import bb.lanxing.mvp.base.IView;


public class AbsPresenter<VIEW extends IView> {
    Bundle mArguments;
    VIEW mView;

    public boolean onBackPressed() {
        return false;
    }

    AbsPresenter(VIEW view, Bundle bundle) {
        bind(view);
        this.mArguments = bundle;
    }

    public AbsPresenter(VIEW view) {
        this(view, null);
    }

    AbsPresenter() {
        this(null, null);
    }

    public void bind(VIEW view) {
        this.mView = view;
    }

    public void unbind() {
        this.mView = null;
    }
}
